package org.jeecg.modules.travel.carpool.mapper;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.travel.carpool.entity.TravelCarpool;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

/**
 * @Description: Travel Car
 * @Author: Travel
 * @Date:  2023-03-12
 * @Version: V1.0
 */
public interface TravelCarpoolMapper extends BaseMapper<TravelCarpool> {
    /**
     * 分页查询用户的拼车信息
     * @param page 分页对象
     * @param uid 用户id
     * @return 拼车信息列表
     */

    IPage<TravelCarpool> selectListByUid(Page<TravelCarpool> page,@Param(Constants.WRAPPER) QueryWrapper<TravelCarpool> wrapper);

    /**
     * 找车列表
     * @param page 分页对象
     * @param uid 用户id
     * @return 拼车信息列表
     */

    IPage<TravelCarpool> selectListByFind(Page<TravelCarpool> page,@Param(Constants.WRAPPER) QueryWrapper<TravelCarpool> wrapper);

    /**
     * 根据id查询拼车信息
     * @param id 拼车信息id
     * @return 拼车信息
     */
    TravelCarpool selectByIdJourney(@Param("id") Serializable id);


}
